package com.hyb.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyb.Vo.StaffRoleVo;
import com.hyb.entity.Staff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyb.page.VoQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  员工Mapper 接口
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Mapper
public interface StaffMapper extends BaseMapper<Staff> {

    IPage<Staff> getStaffsByWarpper(Page page, @Param("voQuery") VoQuery voQuery);
    StaffRoleVo getStaffAndRoleBystaffId(int staffId);

    List<Staff> selectAllAccountManager();
}
